import request from '@/ya/request';

const ExamManagerApi = {
	// 分页查询问题报告
	getProblemList: (data) => {
		return request({
			url: '/api/admin/problem-reports',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
				showError: false,
			},
		});
	},
	// 获取问题报告详情
	getProblemById: (reportId) => {
		return request({
			url: `/api/admin/problem-reports/${reportId}`,
			method: 'GET',
			custom: {
				showLoading: false,
				auth: true,
				showError: false,
			},
		});
	},
	// 获取管理员权限考点的统计信息
	getExamTotal: () => {
		return request({
			url: '/api/admin/problem-reports/exam-sites/statistics',
			method: 'GET',
			custom: {
				showLoading: false,
				auth: true,
				showError: false,
			},
		});
	},
	// 获取中心管理员权限考点的统计信息
	getAllExamTotal: () => {
		return request({
			url: '/api/admin/problem-reports/exam-sites/alltatistics',
			method: 'GET',
			custom: {
				showLoading: false,
				auth: true,
				showError: false,
			},
		});
	}
};

export default ExamManagerApi;